package route

import (
	"github.com/kataras/iris/v12"
	"github.com/kataras/iris/v12/mvc"
	"iristest/config"
	"iristest/controller"
)

func init() {

}

func Run() {
	app := iris.Default()
	mvc.Configure(app.Party("/api"), controller.ApiMvc)
	mvc.Configure(app.Party("/"), controller.ViewMvc)
	app.Run(iris.Addr(":" + config.C.Server.Port))
}
